/*
 * gl_utils.h
 *
 *  Created on: 2011-11-8
 *      Author: zhangtao
 */

#ifndef GL_UTILS_H_
#define GL_UTILS_H_

#include <GL/gl.h>

void calculateNormal(GLfloat normal[], GLfloat vertexes[9]);
void crossProduct(GLfloat result[3], GLfloat vecter1[3], GLfloat vecter2[3]);
void createShadowMatrix(GLfloat matrix[16], GLfloat planeEq[4], GLfloat light[3]);
void createPlaneEquation(GLfloat equ[4], GLfloat vertexes[9]);

#endif /* GL_UTILS_H_ */
